#pragma once
#include "ISheetBase.h"
#include <vector>
#include "Resource.h"

class CViesStockTabCtrl : public CXTPExcelTabCtrl
{
	DECLARE_DYNAMIC(CViesStockTabCtrl)

public:
	CViesStockTabCtrl(void);
	virtual ~CViesStockTabCtrl(void);

	enum{IDD=IDC_REPORT_TABCTRL};

public:
	bool MyCreate(CWnd* pParent);

	ISheetBase* GetSheetBase(int i);

	bool InsertSheet(const std::vector<ISheetBase*>& vecSheetBase);

	bool InsertSheet(UINT nIndex, ISheetBase* pSheetBase);

	bool DeleteStockSheet();

	DECLARE_MESSAGE_MAP()
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
};
